import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    count:0   //定义需要改变的值
  },
  mutations: {
    increase(){
      this.state.count++   //点击方法 count增加
    }
  },
  actions: {},
  modules: {}
});
